import request from '@/utils/request'
// -------- 项目类型 --------

let BASE_ADDRESS = 'work/projectFlow'

// 分页查询  /work/projectFlow/list
export const getProjectFlowListApi = (params) =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 添加项目流程 /work/projectFlow/add
export const addProjectFlowApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}

// 修改项目流程 /work/projectFlow/edit
export const editProjectFlowApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 删除项目流程 /work/projectFlow/remove/{id}
export const removeProjectFlowApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: 'delete',
    })
}